import request from "@/utils/request"
export type updateCenterType={
    id?:number
    img:string
    username:string
    gender?:number
    tag:string
}
export const saveImg = (data:FormData) => {
    return request<string>({
        url: "/api/saveFile/save",
        data: data,
        method:"post",
        headers: {
            "Content-Type": "multipart/form-data"
        },
    })
}


export const updateCenter=(data:updateCenterType)=>{
    return request<updateCenterType>({
        url:"/api/user/update",
        method:"post",
        data
    })
}
